package br.ufg.modulo04.dao.factory;

import br.ufg.modulo04.dao.UsuarioDAO;

public class UsuarioDaoFactory {
	private UsuarioDAO dao;
	private static UsuarioDaoFactory factory;

	private UsuarioDaoFactory() {
		dao = new UsuarioDAO();
	}

	public static UsuarioDaoFactory getInstance() {
		if (factory == null)
			factory = new UsuarioDaoFactory();
		return factory;
	}

	public UsuarioDAO getUsuarioDao() {
		return dao;
	}
}
